﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPC.Communication.Framework.Core.IMessage
{
    public interface INetMessage
    {
        int ProtocolHeadBytesLength
        {
            get;
        }

        byte[] HeadBytes
        {
            get;
            set;
        }

        byte[] ContentBytes
        {
            get;
            set;
        }

        byte[] SendBytes
        {
            get;
            set;
        }

        int GetContentLengthByHeadBytes();

        bool CheckHeadBytesLegal(byte[] token);

        int GetHeadBytesIdentity();
    }
}
